import { Injectable } from '@angular/core';
import { Observable } from 'rxjs';
import { ConfigService } from 'app/config/config.service';
import { HttpClient } from '@angular/common/http';
import { USER_API_URL } from 'app/app.constants';
@Injectable({
    providedIn: 'root'
})
export class ChangePasswordBoxService {
    private apiUrl_user_online = USER_API_URL;
    private _user = this.config.apiUrl.user;
    constructor(private config: ConfigService, private http: HttpClient) {}

    changePwd(params: any): Observable<any> {
        const url = `${this._user}/userMgt/user/changePwd`;
        return this.http.post<any>(url, params);
    }
}
